package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. DICTIONARIESDao;
import com.capinfo.accumulation.model.accounting.mybist. DICTIONARIES;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.DICTIONARIESServiceI;

@Service("dICTIONARIESService")
public class  DICTIONARIESServiceImpl implements  DICTIONARIESServiceI {
	
	@Autowired
	 DICTIONARIESDao  dICTIONARIESDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.dICTIONARIESDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(DICTIONARIES record) {
		return this.dICTIONARIESDao.insertSelective(record);
	}

	@Override
	public DICTIONARIES selectByPrimaryKey(String id) {
		return this.dICTIONARIESDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(DICTIONARIES record) {
		return this.dICTIONARIESDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<DICTIONARIES> retList = this.dICTIONARIESDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

}
